<?php
//-------------------INPUT ELEMENTS----------------
$product_name = $this->Item['name'];
if (!empty($this->Item['picture'])) {
  $picture = UPLOADS_URL . '/products/img80x75/' . $this->Item['picture'];
  $picture = '<img src="' . $picture . '"> <br>' . $this->Item['picture'];
}

$price = $this->Item['price'];
$selloff = $this->Item['selloff'];
$order = $this->Item['order'];
$created_by = $this->Item['created_by'];
$register_date = $this->Item['created'];

$status = $this->Item['status'];
if ($status == 1) {
  $status = $this->cmsIconButton('Active', $this->imgUrl . '/icon/active.png');
} else {
  $status = $this->cmsIconButton('INactive', $this->imgUrl . '/icon/inactive.png');
}

$options = $this->slbGroup;

$category = $this->Item['category_name'];
$content = $this->cmsReplaceString(nl2br($this->Item['content']));

//echo $this->Item['sign'];
$arrInput = array(
            array('label' => 'Product name: ', 'input' => $product_name, 'style' => 'line-height: 25px;'),
            array('label' => 'Picture: ', 'input' => $picture, 'style' => 'margin-left: 175px;'),
            array('label' => 'Price: ', 'input' => $price, 'style' => 'line-height: 25px;'),
            array('label' => 'SellOff: ', 'input' => $selloff, 'style' => 'line-height: 25px;'),
            array('label' => 'Category: ', 'input' => $category, 'style' => 'line-height: 25px;'), 
            array('label' => 'Order: ', 'input' => $order, 'style' => 'line-height: 25px;'),
            array('label' => 'Registed: ', 'input' => $register_date, 'style' => 'line-height: 25px;'),
            array('label' => 'Birthday: ', 'input' => $created_by, 'style' => 'line-height: 25px;'),
            array('label' => 'Status: ', 'input' => $status, 'style' => 'line-height: 25px;'),
            array('label' => 'Content: ', 'input' => $content, 'style' => 'margin-left: 175px;line-height:25px;'),
            );

?>
<form name="appForm" method="post" action="" enctype="multipart/form-data">
<?php echo $this->render('product/toolbar/index.php') ?>
<div class="clr"></div>
<?php // echo $this->render('user/sublink/index.php') ?>
<!-- BEGIN: CONTENT -->
<div id="element-box">
  <div class="t">
      <div class="t">
          <div class="t"></div>
      </div>
  </div>
  <div class="m">
    <!-- BEGIN: ELEMENT BOX -->
    <div id="adminfieldset">
    <div class="adminheader">Product Detail</div>
      <?php echo $this->partialLoop('row.php', $arrInput); ?>
    </div>
    <!-- END: ELEMENT BOX --> 
    <div class="clr"></div>
  </div>
    <div class="b">
        <div class="b">
            <div class="b"></div>
        </div>
    </div>
</div>
<!-- END:  CONTENT -->
</form>